home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 5817 / 5817.xpi / chrome / content / createTable.xul < prev    next >
Extensible Markup Language  |  2010-02-11  |  5KB  |  111 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <!DOCTYPE window SYSTEM "chrome://sqlitemanager/locale/sqlitemanager.dtd">
  4.  
  5. <dialog id="createtable" title="&window.title; - &createTable;"
  6.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.         persist="width sizemode"
  8.         buttons="accept,cancel"
  9.         ondialogaccept="return CreateManager.doOKCreateTable();"
  10.         ondialogcancel="return CreateManager.doCancel();"
  11.         onload="CreateManager.loadCreateTableDialog();">
  12.  
  13.   <script type="application/x-javascript" src="createManager.js"/>  
  14.   <script type="application/x-javascript" src="globals.js"/>  
  15.  
  16.   <hbox flex="1" style="margin:5px 0 5px 0;">
  17.     <spacer flex="1"/>
  18.     <label style="padding-top:3px" accesskey="D"
  19.         control="dbName" value="&createTable.dbName;"/>
  20.     <menulist id="dbName"/>
  21.     <label style="padding-top:3px" accesskey="N"
  22.         control="tablename" value="&createTable.tablename;"/>
  23.     <textbox id="tablename"/>
  24.     <spacer flex="1"/>
  25.   </hbox>
  26.   <hbox id="hb-temp-exists" flex="1" style="margin:5px 0 5px 0;">
  27.     <spacer flex="1"/>
  28.     <checkbox id="temptable" accesskey="&createTable.temptable.ak;" label="&createTable.temptable;"/>
  29.     <checkbox id="ifnotexists" accesskey="&createTable.ifnotexists.ak;" label="&createTable.ifnotexists;"/>
  30.     <spacer flex="1"/>
  31.   </hbox>
  32.   <groupbox id="rows-grbox">
  33.   <caption label="&createTable.tablecolumns;"/>
  34.     <grid style="overflow-y:auto" height="300">
  35.       <columns>
  36.         <column/>
  37.         <column/>
  38.         <column/>
  39.         <column/>
  40.       </columns>
  41.       <rows id="rows-all">
  42.         <row>
  43.           <label control="colname" value="&createTable.colname;"/>
  44.           <label control="datatype" value="&createTable.datatype;"/>
  45.           <label control="primarykey" value="&createTable.primarykey;"/>
  46.           <label control="autoincrement" value="&createTable.autoincrement;"/>
  47.           <label control="allownull" value="&createTable.allownull;"/>
  48.           <label control="" value="&createTable.default;"/>
  49. <!--
  50.           <label control="" value="&createTable.unique;"/>
  51. -->
  52.         </row>
  53.         <row id="row-template" style="display:none">
  54.           <textbox id="colname"  width="10"/>
  55.           <menulist id="datatype"   style="width:120px"
  56.             sizetopopup="always" editable="true"
  57.             oncommand="CreateManager.changeDataType(this.id);"
  58.             onblur="CreateManager.changeDataType(this.id);">
  59.             <menupopup>
  60.               <menuitem label="" selected="true"/>
  61.               <menuitem label="INTEGER" />
  62.               <menuitem label="BOOL" />
  63.               <menuitem label="DOUBLE" />
  64.               <menuitem label="FLOAT" />
  65.               <menuitem label="REAL" />
  66.               <menuitem label="CHAR" />
  67.               <menuitem label="TEXT" />
  68.               <menuitem label="VARCHAR" />
  69.               <menuitem label="BLOB" />
  70.               <menuitem label="NUMERIC" />
  71.               <menuitem label="DATETIME" />
  72.               <menuitem label="INTEGER (strict)" sm_type="INTEGER" sm_check="check(typeof(zzzz) = 'integer')"/>
  73.               <menuitem label="REAL (strict)" sm_type="REAL" sm_check="check(typeof(zzzz) = 'real')"/>
  74.               <menuitem label="TEXT (strict)" sm_type="TEXT" sm_check="check(typeof(zzzz) = 'text')"/>
  75.             </menupopup>
  76.           </menulist>
  77.           <checkbox id="primarykey" 
  78.             label="&createTable.primarykey.yes;" checked="false"
  79.             oncommand="CreateManager.togglePrimaryKey(this.id);"/>
  80.           <checkbox id="autoincrement" 
  81.             label="&createTable.autoincrement.yes;" checked="false" disabled="true"
  82.             tooltiptext="&createTable.autoincrement.tooltip;"
  83.             onclick=""/>
  84.           <checkbox id="allownull" 
  85.             label="&createTable.allownull.yes;"  checked="true"/>
  86.           <menulist id="defaultvalue"   style="width:150px"
  87.             sizetopopup="always" editable="true">
  88.             <menupopup>
  89.               <menuitem id="mi-val-null" label="" selected="true"/>
  90.               <menuitem label="CURRENT_DATE" />
  91.               <menuitem label="CURRENT_TIME" />
  92.               <menuitem label="CURRENT_TIMESTAMP" />
  93.             </menupopup>
  94.           </menulist>
  95. <!--
  96.           <menulist id="unique"
  97.                 sizetopopup="always"
  98.                 oncommand="">
  99.                 <menupopup>
  100.                   <menuitem label="" selected="true"/>
  101.                   <menuitem label="&createTable.unique.column;" />
  102.                   <menuitem label="&createTable.unique.columnlist;" />
  103.                 </menupopup>
  104.           </menulist>
  105. -->
  106.         </row>
  107.       </rows>
  108.     </grid>  
  109.   </groupbox>
  110. </dialog>
  111.